package com.ruoyi.swla2.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 换表明细对象 dw_replace
 *
 * @author gdqt
 * @date 2023-06-16
 */
public class TerminalsReplace extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 设备归属水司
     */
    @Excel(name = "设备归属水司")
    private String tenantId;

    /**
     * 原厂家编号
     */
    @Excel(name = "原厂家编号")
    private String supplieridOld;

    /**
     * 新厂家编号
     */
    @Excel(name = "新厂家编号")
    private String supplieridNew;

    /**
     * 用户编号
     */
    @Excel(name = "用户编号")
    private String TerminalID;

    /**
     * 原设备编号
     */
    @Excel(name = "原设备编号")
    private String easionidOld;

    /**
     * 新设备编号
     */
    @Excel(name = "新设备编号")
    private String easionidNew;

    /**
     * 原表读数
     */
    @Excel(name = "原表读数")
    private BigDecimal totalflowOld;

    /**
     * 新表读数
     */
    @Excel(name = "新表读数")
    private BigDecimal totalflowNew;

    /**
     * 设备类型1-大表、2-小表
     */
    @Excel(name = "设备类型1-大表、2-小表")
    private Integer TerminalType;

    /**
     * 换表日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "换表日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date replaceDate;

    /**
     * 上传日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadDate;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String Remark;


    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setSupplieridOld(String supplieridOld) {
        this.supplieridOld = supplieridOld;
    }

    public String getSupplieridOld() {
        return supplieridOld;
    }

    public void setSupplieridNew(String supplieridNew) {
        this.supplieridNew = supplieridNew;
    }

    public String getSupplieridNew() {
        return supplieridNew;
    }

    public void setTerminalID(String TerminalID) {
        this.TerminalID = TerminalID;
    }

    public String getTerminalID() {
        return TerminalID;
    }

    public void setEasionidOld(String easionidOld) {
        this.easionidOld = easionidOld;
    }

    public String getEasionidOld() {
        return easionidOld;
    }

    public void setEasionidNew(String easionidNew) {
        this.easionidNew = easionidNew;
    }

    public String getEasionidNew() {
        return easionidNew;
    }

    public void setTotalflowOld(BigDecimal totalflowOld) {
        this.totalflowOld = totalflowOld;
    }

    public BigDecimal getTotalflowOld() {
        return totalflowOld;
    }

    public void setTotalflowNew(BigDecimal totalflowNew) {
        this.totalflowNew = totalflowNew;
    }

    public BigDecimal getTotalflowNew() {
        return totalflowNew;
    }

    public void setTerminalType(Integer TerminalType) {
        this.TerminalType = TerminalType;
    }

    public Integer getTerminalType() {
        return TerminalType;
    }

    public void setReplaceDate(Date replaceDate) {
        this.replaceDate = replaceDate;
    }

    public Date getReplaceDate() {
        return replaceDate;
    }

    public void setUploadDate(Date uploadDate) {
        this.uploadDate = uploadDate;
    }

    public Date getUploadDate() {
        return uploadDate;
    }

    @Override
    public String getRemark() {
        return Remark;
    }

    @Override
    public void setRemark(String remark) {
        Remark = remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("tenantId", getTenantId())
                .append("supplieridOld", getSupplieridOld())
                .append("supplieridNew", getSupplieridNew())
                .append("TerminalID", getTerminalID())
                .append("easionidOld", getEasionidOld())
                .append("easionidNew", getEasionidNew())
                .append("totalflowOld", getTotalflowOld())
                .append("totalflowNew", getTotalflowNew())
                .append("TerminalType", getTerminalType())
                .append("replaceDate", getReplaceDate())
                .append("uploadDate", getUploadDate())
                .append("Remark", getRemark())
                .toString();
    }
}
